<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var i1=   parseInt(window.prompt("请你输入第一个数字"));
        var i2= parseInt( window.prompt("请你输入第2个数字"));
    if(i1<i2)
    {
alert("小于")
    }        
    else
    if(i1>i2)
    {
        alert("大于")
    }       
    else{
        alert("等于")
    }
    </script>
</body>
</html>